# Author:chensimin

user_date = ["simin", "xiaoming"]
password_data= ["123456", "456789"]
user_date_vip = ["simin","123456"]
tuichu_data = ["退出"]

# 会员用户能查看10次，非会员用户只能查看5次
# 输入密码账号次数为3次
import datetime
time = datetime.datetime.today().weekday()


count = 3
while True:
    count -= 1
    # 用户输入数据
    user_name = input("请输入您的账号：")
    pass_word = input("请输入您的密码：")
    # 1.先判断账号
    if user_name in user_date:
        if user_name in user_date and user_name in user_date_vip:
            if pass_word == password_data:
                count = 10
                while True:
                    tuichu = input("查询乱填，退出填‘退出’：")
                    if tuichu in tuichu_data:
                        print("退出")
                        break
                    else:
                        if count == 0:
                            print("您的查看机会已经耗尽。")
                            break

                        else:
                            count -= 1

                            print("您是我们尊贵滴会员=3=~")
                            print("您还有", count, "次查看机会")
                            week_time = int(time)
                            #week_time
                            print("您是我们尊贵滴会员=3=~")
                            print("您还有", count, "次查看机会")
                            week_time = int(time)
                            # week_time
                            if week_time == 1:
                               print("9:45-12:00 python")
                               print("12:50-14:20 写作训练")
                               print("15:15-17:35 歌舞")
                            elif week_time == 2:
                                 print("14:30-15:55 h5")
                                 print("16:10-17:35 大英")
                            elif week_time == 3:
                                 print("8:00-10:35 毛概理论")
                            elif week_time == 4:
                                 print("10:35-12:00 大英")
                                 print("14:30-16:50 创业实践")
                            elif week_time == 5:
                                 print("14:30-15:55 毛概实践")
                            else:
                                print("休息啦噜噜噜~")
                else:
                    if count ==0:
                        print("你都输入三次了，还不对，笨死啦，5分钟后再见")
                break
            else:
                print("您输入的账号或密码不正确，请重新输入，您还有",count,"次机会")
    # 3次都没成功退出登录
    else:
        if pass_word == password_data:
            count = 3
            while True:
                tuichu = input("查询乱填，退出填'退出‘：")
                if tuichu in tuichu_data:
                    print("退出")
                    break
                else:
                    if count == 0:
                        print("您的查看机会已经耗尽，退出填'退出")
                        if tuichu in tuichu_data:
                            print("退出")
                            break
                        else:
                            if count == 0:
                                print("您的查看机会已耗尽。")
                                break

                            else:
                                count -= 1

                                print("您还不是会员")
                                print("您还有", count,"次查看机会")
                                week_time = int(time)
                                # week_time
                                print("您是我们尊贵滴会员=3=~")
                                print("您还有", count, "次查看机会")
                                week_time = int(time)
                                # week_time
                                if week_time == 1:
                                   print("9:45-12:00 python")
                                   print("12:50-14:20 写作训练")
                                   print("15:15-17:35 歌舞")
                                elif week_time == 2:
                                     print("14:30-15:55 h5")
                                     print("16:10-17:35 大英")
                                elif week_time == 3:
                                     print("8:00-10:35 毛概理论")
                                elif week_time == 4:
                                     print("10:35-12:00 大英")
                                     print("14:30-16:50 创业实践")
                                elif week_time == 5:
                                     print("14:30-15:55 毛概实践")
                                else:
                                    print("休息啦噜噜噜~")
                    else:
                        if count == 0:
                            print("您都输错三次了，还不对，5分钟后再见吧~")
                            break
                        else:
                            print("您输入的账号或密码不正确，请重新输入，您还有",count,"次机会")
        else:
            print("用户名错误")

























